<!-- Navbar items -->
<?php //date_default_timezone_set('Asia/Jakarta'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
	<link type="text/css" href="<?php echo base_url();?>css/bootstrap-responsive.min.css" rel="stylesheet">
	<link type="text/css" href="<?php echo base_url();?>css/bootstrap.min.css" rel="stylesheet">
	<meta name="viewport" content="width=device-width, initial-scale=1">
    <link type="text/css" href="<?php echo base_url();?>css/styleq.css" rel="stylesheet">
	<link type="text/css" href="<?php echo base_url();?>css/sub.css" rel="stylesheet">
	<link type="text/css" rel="stylesheet" media="all" href="<?php echo base_url();?>css/jquery-ui.css" />
	<link rel="stylesheet" media="all" type="text/css" href="<?php echo base_url();?>css/jquery-ui-timepicker-addon.css" />
</head><body>
   <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <a class="brand" href="#myCarousel"> 
      <!-- Put your photo link in the src attribute -->
     
      </a>
          <div class="nav-collapse collapse">
            <ul class="nav navbar">
              <li class="active"><a href="<?php echo base_url();?>index.php/land"><img src="<?php echo base_url();?>img/6.png" alt=""></a></li>
			  
              <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Kegiatan K3<b class="caret"></b></a>
			  <ul class="dropdown-menu">
			  <li><a href="<?php echo base_url();?>index.php/instrukeg" />Instruksi</a></li>
			   <?php
			   if($this->session->userdata('role')==2)
			   {
				if(date('d')<10)
				{
			   ?>
			  <li><a href="<?php echo base_url();?>index.php/safetypatrolpengawas" />Checklist Safety Patrol Pengawas</a></li>
			  <?php
				}
			  }
			  ?>
			  
			  <?php
			  if($this->session->userdata('role')==1)
			   {
				if(date('d')<10)
				{
			   ?>
			  <li><a href="<?php echo base_url();?>index.php/safetypatrol" />Checklist Safety Patrol</a></li>
			  <li><a href="<?php echo base_url();?>index.php/pembul" />Laporan Hasil Pemeriksaan Bulanan</a></li>
			  <?php
				}
			  }
			  else if($this->session->userdata('role')==5)
			  {
			   ?>
			  <li><a href="<?php echo base_url();?>index.php/safetypatrol" />Checklist Safety Patrol</a></li>
			  <li><a href="<?php echo base_url();?>index.php/safetypatrolpengawas" />Checklist Safety Patrol Pengawas</a></li>
			  <li><a href="<?php echo base_url();?>index.php/pembul" />Laporan Hasil Pemeriksaan Bulanan</a></li>
			  <?php
			  }
			  ?>
			  
			   <?php
			   if($this->session->userdata('role')==5)
			   {
			   ?>
			  <li><a href="<?php echo base_url();?>index.php/haspem" />Laporan Hasil Pemeriksaan SUB P2K3 Potensi Bahaya Tinggi</a></li>
			  <?php
			  }
			  if($this->session->userdata('role')==1)
			  {
				if(date('d')<10)
				{
			   ?>
			  <li><a href="<?php echo base_url();?>index.php/haspem" />Laporan Hasil Pemeriksaan SUB P2K3 Potensi Bahaya Tinggi</a></li>
			  <?php
			    }
			  }
			  ?>
			  
			   <?php
			   if($this->session->userdata('role')==5 or $this->session->userdata('role')==2 && date('d')<10)
			   {
			   ?>
			  <li><a href="<?php echo base_url();?>index.php/patrolsub" />Laporan Hasil Patrol Sub P2K3</a></li>
			  <?php
			  }
			  ?>
			  
			  <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Lihat<b class="caret"></b></a>
			  <ul class="dropdown-menu sub-menu">
			  <li><a href="<?php echo base_url();?>index.php/safetypatrol/lihat" />Lihat Checklist Safety Patrol</a></li>
			  <li><a href="<?php echo base_url();?>index.php/safetypatrolpengawas/lihat" />Lihat Checklist Safety Patrol Pengawas</a></li>
			  <li><a href="<?php echo base_url();?>index.php/pembul/lihat" />Lihat Laporan Hasil Pemeriksaan Bulanan</a></li>
			  <li><a href="<?php echo base_url();?>index.php/haspem/lihat" />Lihat Laporan Hasil Pemeriksaan SUB P2K3 Potensi Bahaya Tinggi</a></li>
			  <li><a href="<?php echo base_url();?>index.php/patrolsub/lihat" />Lihat Laporan Hasil Patrol Sub P2K3</a></li></ul>
			  </li>
			  </ul></li>
			   <?php
			   /*if($this->session->userdata('role')==5 or $this->session->userdata('role')==1)
			   {
			   ?>
              <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Kartu Stop<b class="caret"></b></a>
			  <ul class="dropdown-menu">
			  <li><a href="<?php echo base_url();?>index.php/stop" />Form Pelaporan Kartu Stop</a></li>
			  <li><a href="<?php echo base_url();?>index.php/stop/instruksi" />Instruksi</a></li>
			  <li><a href="<?php echo base_url();?>index.php/stop/lihat" />Lihat</a></li>
			  </ul></li>
			   <?php
			   }
			   else if($this->session->userdata('role')==4)
			   {
			   ?>
              <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Kartu Stop<b class="caret"></b></a>
			  <ul class="dropdown-menu">
			  <li><a href="<?php echo base_url();?>index.php/stop/instruksi" />Instruksi</a></li>
			  <li><a href="<?php echo base_url();?>index.php/stop/lihat" />Lihat</a></li>
			  </ul></li>
			   <?php
			   }*/
			   ?>
			   
              <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Kartu Stop<b class="caret"></b></a>
			  <ul class="dropdown-menu">
			  <li><a href="<?php echo base_url();?>index.php/stop" />Form Pelaporan Kartu Stop</a></li>
			  <li><a href="<?php echo base_url();?>index.php/stop/instruksi" />Instruksi</a></li>
			  <li><a href="<?php echo base_url();?>index.php/stop/lihat" />Lihat</a></li>
			  </ul></li>
              <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Fasilitas<b class="caret"></b></a>
			  <ul class="dropdown-menu">
			  <?php
			  if($this->session->userdata('role')==1)
			   {
				if(date('d')<10)
				{
			   ?>
			  <li><a href="<?php echo base_url();?>index.php/fasilitas" />Checklist Fasilitas K3</a></li>
			  <?php
				}
			  }
			  else if($this->session->userdata('role')==5)
			  {
			   ?>
			  <li><a href="<?php echo base_url();?>index.php/fasilitas" />Checklist Fasilitas K3</a></li>
			  <?php
			  }
			  ?>
			  
			  <?php
			  if($this->session->userdata('role')==1)
			  {
				if(date('d')<10)
				{
			 /*   ?>
			  <li><a href="<?php echo base_url();?>index.php/fasilitaspengawas" />Checklist Fasilitas K3</a></li>
			  <?php */
				}
			  }
			  else if($this->session->userdata('role')==5)
			  {
			   ?>
			  <li><a href="<?php echo base_url();?>index.php/fasilitaspengawas" />Checklist Fasilitas Pengawas K3</a></li>
			  <?php
			  }
			  else if($this->session->userdata('role')==2)
			  {
				if(date('d')<10)
				{
			   ?>
			  <li><a href="<?php echo base_url();?>index.php/fasilitaspengawas" />Checklist Fasilitas Pengawas</a></li>
			  <?php
				}
			  }
			  ?>
			  
			  <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Lihat<b class="caret"></b></a>
			  <ul class="dropdown-menu sub-menu">
			  <li><a href="<?php echo base_url();?>index.php/fasilitas/lihat" />Checklist Fasilitas K3</a></li>
			  <li><a href="<?php echo base_url();?>index.php/fasilitaspengawas/lihat" />Checklist Fasilitas Pengawas K3</a></li></ul>
			  </li>
			  
			  </ul></li>
			   <li><a href="<?php echo base_url();?>index.php/rekap" />Rekap</a></li>
			   <?php
			   if($this->session->userdata('role')==5)
			   {
			   ?>
              <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">User Management<b class="caret"></b></a>
			  <ul class="dropdown-menu">
			  <li><a href="<?php echo base_url();?>index.php/usman" />Add User</a></li>
			  <li><a href="<?php echo base_url();?>index.php/usman/lihat" />Lihat</a></li>
			  </ul></li>
			   <?php
			   }
			   ?>
			  
			   <?php if($this->session->userdata('role')==5 or $this->session->userdata('role')==4 or $this->session->userdata('role')==2 or $this->session->userdata('role')==3)
			   { ?> <li><a href="<?php echo base_url();?>index.php/insentif" />Insentif</a></li> <?php } ?>
			   
			   <li><a href="<?php echo base_url();?>index.php/logout" />Logout</a></li>
			  </li>
            </ul>
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div>
	</br></br></br></br><div class="container"><a href="javascript:history.go(-1)" class="btn btn-default" /><--BACK</a></div></br></br>
	
	<!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
	
	<!--
	<script src="https://code.jquery.com/jquery.js"></script>
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
	<script src="//code.jquery.com/jquery-1.10.2.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    <script>window.jQuery || document.write("<script src='js/jquery-1.8.3.min.js'>\x3C/script>")</script>
	
	-->
	
	<script type="text/javascript" language="javascript" src="<?php echo base_url();?>js/media/js/jquery.js"></script>
	<script type="text/javascript" language="javascript" src="<?php echo base_url();?>js/media/js/jquery.dataTables.js"></script>
	<script type="text/javascript" language="javascript" class="init">
	$(document).ready(function() {
		$('#my_data_list').dataTable();
	} );
	</script>
	
    <script src="<?php echo base_url();?>js/bootstrap.min.js"></script>
    <script src="<?php echo base_url();?>js/jquery.easing.1.3.js"></script>
    <script type="text/javascript">
      $(document).ready(function() {
        $('a[href^="#"]').click(function(event) {
            var id = $(this).attr("href");
            var offset = 60;
            var target = $(id).offset().top - offset;
            $('html, body').animate({scrollTop:target}, 800, $.easing.easeInOutExpo());
            event.preventDefault();
        });
      });
    </script>
	
	
	<script src="<?php echo base_url();?>js/jquery-ui.js"></script>
	<script type="text/javascript" src="<?php echo base_url();?>js/jquery-ui-timepicker-addon.js"></script>
	
  
  <script type="text/javascript" src="<?php echo base_url();?>js/jquery-ui-sliderAccess.js"></script>
  <script type="text/javascript">
  $(document).ready(function() {
    $("#datepicker").datepicker();
    
	$("#datepicker1").datepicker();
	$("#datepicker2").datepicker();
	$("#datepicker3").datepicker();
	$("#datepicker4").datepicker();
	$("#datepicker5").datepicker();
	$("#datepicker6").datepicker();
	$("#datepicker7").datepicker();
	$("#datepicker8").datepicker();
	$("#datepicker9").datepicker();
	$("#datepicker10").datepicker();
	$("#datepicker11").datepicker();
	$("#datepicker12").datepicker();
	$("#datepicker13").datepicker();
	$("#datepicker14").datepicker();
	$("#datepicker15").datepicker();
	
	
	$("#datetime").datetimepicker(
	{
		timeFormat: "hh:mm",
		hourMin: 0,
		hourMax: 23,
		numberOfMonths: 2,
		minDate: 0,
		maxDate: 30
	});
	$("#time").timepicker();
  });
    function printArea(areaName)
    {
        var printContents = document.getElementById(areaName).innerHTML;
        var originalContents = document.body.innerHTML;

        document.body.innerHTML = printContents;

        window.print();

        document.body.innerHTML = originalContents;
    }
  </script>
	
	<!--------Data Tables--------->
		<link type="text/css" rel="stylesheet" href="<?php echo base_url();?>js/media/css/jquery.dataTables.css"></script>
	<!--------------------->